package com.kx.game.center.utils;

public abstract class Assert {
	public static void isTrue(boolean expression) {
		if (!expression) {
			isTrue(expression, null);
		}
	}

	public static void isTrue(boolean expression, String msg) {
		if (!expression) {
			throw new IllegalArgumentException(msg);
		}
	}

	public static void notNull(Object obj) {
		if (obj == null) {
			notNull(obj, null);
		}
	}

	public static void notNull(Object obj, String msg) {
		if (obj == null) {
			throw new IllegalArgumentException(msg);
		}
	}
}
